package test.my.com.myapplicationtest.ActivityOptionsAnimation;

import android.app.Activity;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import test.my.com.myapplicationtest.R;

/**
 * Created by ah on 2017/6/21.
 */

public class ActivityOptionsAnimationActivity extends Activity {
    @Bind(R.id.bt_jump)
    Button btJump;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aty_activity_options_animation_layout);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.bt_jump)
    public void onClick() {
        Intent intent = new Intent(this, OtherActivity.class);
        startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(this,btJump,"transition_jump").toBundle());
    }
}
